import {observable,action} from 'mobx'

class Store {
    namespace ="store-button";
    @observable count= 0;
    constructor(){
        setInterval(()=>{
            this.count+=1
            console.log( this.count);
            
        },1000)
    }
    @action.bound
    handClcik(){
           this.count=0 
    }
}
export default new Store();